<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of blog
 *
 * @author alex
 */
class blog extends CI_Controller {

    public function index() {
        $data = array(
            'title' => 'My title',
            'heading' => 'My heading',
            'message' => 'My message'
        );


    }

    public function comments($number, $number2 = null) {
        echo "Welcom nummer: $number en $number2";
    }

    public function account() {
        echo "cool";
        $this->load->model('blog_model');
        $data['accounts'] = $this->blog_model->get_ten_accounts();
//        var_dump($data);
        $this->load->view('blogview', $data);
    }

}
?>

